package com.mindbook.vip.gawxchatinfo.service.impl.nostrum;

import com.mindbook.vip.gawxchatinfo.entity.nostrum.PrimaryLiverCancerTreatmentProgrammeToGroup;
import com.mindbook.vip.gawxchatinfo.mapper.nostrum.PrimaryLiverCancerTreatmentProgrammeToGroupMapper;
import com.mindbook.vip.gawxchatinfo.service.nostrum.PrimaryLiverCancerTreatmentProgrammeToGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @NAME: wxb
 * @DATE: 2022/8/9
 * @DESCRIPTION:
 **/
@Service
public class PrimaryLiverCancerTreatmentProgrammeToGroupServiceImpl implements PrimaryLiverCancerTreatmentProgrammeToGroupService {

    @Autowired private PrimaryLiverCancerTreatmentProgrammeToGroupMapper mapper;

    @Override
    public Integer removeByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer add(PrimaryLiverCancerTreatmentProgrammeToGroup primaryLiverCancerTreatmentProgrammeToGroup) {
        return mapper.insertSelective(primaryLiverCancerTreatmentProgrammeToGroup);
    }

    @Override
    public Integer put(PrimaryLiverCancerTreatmentProgrammeToGroup primaryLiverCancerTreatmentProgrammeToGroup) {
        return mapper.updateByPrimaryKeySelective(primaryLiverCancerTreatmentProgrammeToGroup);
    }

    @Override
    public Integer addSelective(PrimaryLiverCancerTreatmentProgrammeToGroup primaryLiverCancerTreatmentProgrammeToGroup) {
        return null;
    }

    @Override
    public PrimaryLiverCancerTreatmentProgrammeToGroup findByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKeySelective(PrimaryLiverCancerTreatmentProgrammeToGroup primaryLiverCancerTreatmentProgrammeToGroup) {
        return null;
    }

    @Override
    public Integer saveByPrimaryKey(PrimaryLiverCancerTreatmentProgrammeToGroup primaryLiverCancerTreatmentProgrammeToGroup) {
        return null;
    }

    @Override
    public List<PrimaryLiverCancerTreatmentProgrammeToGroup> findAll() {
        return mapper.relationFindAll();
    }

    @Override
    public Integer del(Integer programmeId, Integer groupId) {
        return mapper.deleteByPrimaryKey(groupId,programmeId);
    }

    @Override
    public List findByGroupName(String groupName) {
        return mapper.findByGroupName(groupName);
    }
}
